3.224 \(\int \sqrt {x} \sqrt {1-a x} \, dx\)

Optimal. Leaf size=63 \[ \frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{4 a^{3/2}}+\frac {1}{2} x^{3/2} \sqrt {1-a x}-\frac {\sqrt {x} \sqrt {1-a x}}{4 a} \]

[Out]

1/4*arcsin(a^(1/2)*x^(1/2))/a^(3/2)+1/2*x^(3/2)*(-a*x+1)^(1/2)-1/4*x^(1/2)*(-a*x+1)^(1/2)/a

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {50, 54, 216} \[ \frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{4 a^{3/2}}+\frac {1}{2} x^{3/2} \sqrt {1-a x}-\frac {\sqrt {x} \sqrt {1-a x}}{4 a} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[x]*Sqrt[1 - a*x],x]

[Out]

-(Sqrt[x]*Sqrt[1 - a*x])/(4*a) + (x^(3/2)*Sqrt[1 - a*x])/2 + ArcSin[Sqrt[a]*Sqrt[x]]/(4*a^(3/2))

Rule 50

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^n)/(b*
(m + n + 1)), x] + Dist[(n*(b*c - a*d))/(b*(m + n + 1)), Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a
, b, c, d}, x] && NeQ[b*c - a*d, 0] && GtQ[n, 0] && NeQ[m + n + 1, 0] &&  !(IGtQ[m, 0] && ( !IntegerQ[n] || (G
tQ[m, 0] && LtQ[m - n, 0]))) &&  !ILtQ[m + n + 2, 0] && IntLinearQ[a, b, c, d, m, n, x]

Rule 54

Int[1/(Sqrt[(a_.) + (b_.)*(x_)]*Sqrt[(c_.) + (d_.)*(x_)]), x_Symbol] :> Dist[2/Sqrt[b], Subst[Int[1/Sqrt[b*c -
 a*d + d*x^2], x], x, Sqrt[a + b*x]], x] /; FreeQ[{a, b, c, d}, x] && GtQ[b*c - a*d, 0] && GtQ[b, 0]

Rule 216

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[(Rt[-b, 2]*x)/Sqrt[a]]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rubi steps

\begin {align*} \int \sqrt {x} \sqrt {1-a x} \, dx &=\frac {1}{2} x^{3/2} \sqrt {1-a x}+\frac {1}{4} \int \frac {\sqrt {x}}{\sqrt {1-a x}} \, dx\\ &=-\frac {\sqrt {x} \sqrt {1-a x}}{4 a}+\frac {1}{2} x^{3/2} \sqrt {1-a x}+\frac {\int \frac {1}{\sqrt {x} \sqrt {1-a x}} \, dx}{8 a}\\ &=-\frac {\sqrt {x} \sqrt {1-a x}}{4 a}+\frac {1}{2} x^{3/2} \sqrt {1-a x}+\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-a x^2}} \, dx,x,\sqrt {x}\right )}{4 a}\\ &=-\frac {\sqrt {x} \sqrt {1-a x}}{4 a}+\frac {1}{2} x^{3/2} \sqrt {1-a x}+\frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{4 a^{3/2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 49, normalized size = 0.78 \[ \frac {\sqrt {a} \sqrt {x} \sqrt {1-a x} (2 a x-1)+\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{4 a^{3/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[x]*Sqrt[1 - a*x],x]

[Out]

(Sqrt[a]*Sqrt[x]*Sqrt[1 - a*x]*(-1 + 2*a*x) + ArcSin[Sqrt[a]*Sqrt[x]])/(4*a^(3/2))

________________________________________________________________________________________

fricas [A]  time = 0.75, size = 111, normalized size = 1.76 \[ \left [\frac {2 \, {\left (2 \, a^{2} x - a\right )} \sqrt {-a x + 1} \sqrt {x} - \sqrt {-a} \log \left (-2 \, a x + 2 \, \sqrt {-a x + 1} \sqrt {-a} \sqrt {x} + 1\right )}{8 \, a^{2}}, \frac {{\left (2 \, a^{2} x - a\right )} \sqrt {-a x + 1} \sqrt {x} - \sqrt {a} \arctan \left (\frac {\sqrt {-a x + 1}}{\sqrt {a} \sqrt {x}}\right )}{4 \, a^{2}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1/2)*(-a*x+1)^(1/2),x, algorithm="fricas")

[Out]

[1/8*(2*(2*a^2*x - a)*sqrt(-a*x + 1)*sqrt(x) - sqrt(-a)*log(-2*a*x + 2*sqrt(-a*x + 1)*sqrt(-a)*sqrt(x) + 1))/a
^2, 1/4*((2*a^2*x - a)*sqrt(-a*x + 1)*sqrt(x) - sqrt(a)*arctan(sqrt(-a*x + 1)/(sqrt(a)*sqrt(x))))/a^2]

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1/2)*(-a*x+1)^(1/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError >> Unable to parse Giac output: Warning, choosing root of [1,0,%%%{4,[1,
1]%%%}+%%%{4,[1,0]%%%}+%%%{-4,[0,1]%%%}+%%%{-4,[0,0]%%%},0,%%%{6,[2,2]%%%}+%%%{4,[2,1]%%%}+%%%{6,[2,0]%%%}+%%%
{-4,[1,2]%%%}+%%%{-16,[1,1]%%%}+%%%{-4,[1,0]%%%}+%%%{6,[0,2]%%%}+%%%{4,[0,1]%%%}+%%%{6,[0,0]%%%},0,%%%{4,[3,3]
%%%}+%%%{-4,[3,2]%%%}+%%%{-4,[3,1]%%%}+%%%{4,[3,0]%%%}+%%%{4,[2,3]%%%}+%%%{-52,[2,2]%%%}+%%%{12,[2,1]%%%}+%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{8,[3,2]%%%}+%%%{-8,[3,1]%%%}+%%%{4,[3,0]%%%}+%%%{6,[2,4]%%%}+%%%{-8,[2,3]%%%}+%%%{20,[2
,2]%%%}+%%%{-8,[2,1]%%%}+%%%{6,[2,0]%%%}+%%%{4,[1,4]%%%}+%%%{-8,[1,3]%%%}+%%%{8,[1,2]%%%}+%%%{-8,[1,1]%%%}+%%%
{4,[1,0]%%%}+%%%{1,[0,4]%%%}+%%%{-4,[0,3]%%%}+%%%{6,[0,2]%%%}+%%%{-4,[0,1]%%%}+%%%{1,[0,0]%%%}] at parameters
values [-82.5947937798,51.6443148847]1/a*(-2*a*abs(a)/a^2/a*(2*(1/8*sqrt(-a*x+1)*sqrt(-a*x+1)-5/16)*sqrt(-a*x+
1)*sqrt(-a*(-a*x+1)+a)+6*a/16/sqrt(-a)*ln(abs(sqrt(-a*(-a*x+1)+a)-sqrt(-a)*sqrt(-a*x+1))))-2*abs(a)/a^2*(1/2*s
qrt(-a*x+1)*sqrt(-a*(-a*x+1)+a)-2*a/4/sqrt(-a)*ln(abs(sqrt(-a*(-a*x+1)+a)-sqrt(-a)*sqrt(-a*x+1)))))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 79, normalized size = 1.25 \[ \frac {\sqrt {-a x +1}\, x^{\frac {3}{2}}}{2}-\frac {\sqrt {-a x +1}\, \sqrt {x}}{4 a}+\frac {\sqrt {\left (-a x +1\right ) x}\, \arctan \left (\frac {\left (x -\frac {1}{2 a}\right ) \sqrt {a}}{\sqrt {-a \,x^{2}+x}}\right )}{8 \sqrt {-a x +1}\, a^{\frac {3}{2}} \sqrt {x}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-a*x+1)^(1/2)*x^(1/2),x)

[Out]

1/2*x^(3/2)*(-a*x+1)^(1/2)-1/4*x^(1/2)*(-a*x+1)^(1/2)/a+1/8/a^(3/2)*((-a*x+1)*x)^(1/2)/(-a*x+1)^(1/2)/x^(1/2)*
arctan((x-1/2/a)/(-a*x^2+x)^(1/2)*a^(1/2))

________________________________________________________________________________________

maxima [A]  time = 0.96, size = 82, normalized size = 1.30 \[ \frac {\frac {\sqrt {-a x + 1} a}{\sqrt {x}} - \frac {{\left (-a x + 1\right )}^{\frac {3}{2}}}{x^{\frac {3}{2}}}}{4 \, {\left (a^{3} - \frac {2 \, {\left (a x - 1\right )} a^{2}}{x} + \frac {{\left (a x - 1\right )}^{2} a}{x^{2}}\right )}} - \frac {\arctan \left (\frac {\sqrt {-a x + 1}}{\sqrt {a} \sqrt {x}}\right )}{4 \, a^{\frac {3}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1/2)*(-a*x+1)^(1/2),x, algorithm="maxima")

[Out]

1/4*(sqrt(-a*x + 1)*a/sqrt(x) - (-a*x + 1)^(3/2)/x^(3/2))/(a^3 - 2*(a*x - 1)*a^2/x + (a*x - 1)^2*a/x^2) - 1/4*
arctan(sqrt(-a*x + 1)/(sqrt(a)*sqrt(x)))/a^(3/2)

________________________________________________________________________________________

mupad [B]  time = 2.60, size = 54, normalized size = 0.86 \[ \sqrt {x}\,\left (\frac {x}{2}-\frac {1}{4\,a}\right )\,\sqrt {1-a\,x}-\frac {\ln \left (2\,\sqrt {-a}\,\sqrt {x}\,\sqrt {1-a\,x}-2\,a\,x+1\right )}{8\,{\left (-a\right )}^{3/2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(1/2)*(1 - a*x)^(1/2),x)

[Out]

x^(1/2)*(x/2 - 1/(4*a))*(1 - a*x)^(1/2) - log(2*(-a)^(1/2)*x^(1/2)*(1 - a*x)^(1/2) - 2*a*x + 1)/(8*(-a)^(3/2))

________________________________________________________________________________________

sympy [A]  time = 3.39, size = 148, normalized size = 2.35 \[ \begin {cases} \frac {i a x^{\frac {5}{2}}}{2 \sqrt {a x - 1}} - \frac {3 i x^{\frac {3}{2}}}{4 \sqrt {a x - 1}} + \frac {i \sqrt {x}}{4 a \sqrt {a x - 1}} - \frac {i \operatorname {acosh}{\left (\sqrt {a} \sqrt {x} \right )}}{4 a^{\frac {3}{2}}} & \text {for}\: \left |{a x}\right | > 1 \\- \frac {a x^{\frac {5}{2}}}{2 \sqrt {- a x + 1}} + \frac {3 x^{\frac {3}{2}}}{4 \sqrt {- a x + 1}} - \frac {\sqrt {x}}{4 a \sqrt {- a x + 1}} + \frac {\operatorname {asin}{\left (\sqrt {a} \sqrt {x} \right )}}{4 a^{\frac {3}{2}}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(1/2)*(-a*x+1)**(1/2),x)

[Out]

Piecewise((I*a*x**(5/2)/(2*sqrt(a*x - 1)) - 3*I*x**(3/2)/(4*sqrt(a*x - 1)) + I*sqrt(x)/(4*a*sqrt(a*x - 1)) - I
*acosh(sqrt(a)*sqrt(x))/(4*a**(3/2)), Abs(a*x) > 1), (-a*x**(5/2)/(2*sqrt(-a*x + 1)) + 3*x**(3/2)/(4*sqrt(-a*x
 + 1)) - sqrt(x)/(4*a*sqrt(-a*x + 1)) + asin(sqrt(a)*sqrt(x))/(4*a**(3/2)), True))

________________________________________________________________________________________